package com.example.mapper;

import com.example.pojo.Student;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @Author 宋伟宁
 * @Date 2023/10/19
 * @Version 1.0
 **/
public interface StudentMapper {

     List<Student> findAll(String name);

     int del(@Param("arr")String [] arr);

     @Insert("insert into t_student(name, sex, birthday) VALUES (#{name},#{sex},#{birthday})")
     int add(Student student);

     @Update("update t_student set name=#{name},sex=#{sex},birthday=#{birthday} where id=#{id}")
     int update(Student student);
}
